<?php
/*
 * @Author: 莫莫
 * @Phone: 13450159681
 * @Description: 
 * @Date: 2024-12-12 16:16:20
 * @LastEditTime: 2024-12-16 17:08:00
 */



namespace app\admin\model\shopro;



use app\admin\model\shopro\Common;



class Banner extends Common

{

    protected $name = 'shopro_banner';



    // 追加属性

    protected $append = [

        'status_text',

    ];


    public function getStatusList()

    {

        return ['normal' => __('Normal'), 'hidden' => __('Hidden')];

    }

    public function categoryList(){
        $category = new \app\admin\model\shopro\Category();
        $list = $category->where('type', 'banner')->select();
        return $list;
    }

}

